package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng123
 * @since 2018-03-07
 */
@TableName("t_train")
public class TTrain extends Model<TTrain> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("car_no")
    private String carNo;
    @TableField("driver_name")
    private String driverName;
    @TableField("send_dept_name")
    private String sendDeptName;


    @TableField("send_dept_id")
    private String sendDeptId;

    @TableField("create_time")
    private Date createTime;
    private String phone;
    @TableField("report_date")
    private Date reportDate;
    /**
     *  0 未核销 1 核销
     */
    private Integer status;
    @TableField("user_id")
    private Integer userId;
    @TableField("dot_id")
    private Integer dot_id;
    @TableField("train_no")
    private String trainNo;

    private String train_type;
    private String driver_id;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo;
    }

    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    public String getSendDeptName() {
        return sendDeptName;
    }

    public void setSendDeptName(String sendDeptName) {
        this.sendDeptName = sendDeptName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getReportDate() {
        return reportDate;
    }

    public void setReportDate(Date reportDate) {
        this.reportDate = reportDate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getTrainNo() {
        return trainNo;
    }

    public void setTrainNo(String trainNo) {
        this.trainNo = trainNo;
    }

    public Integer getDot_id() {
        return dot_id;
    }

    public void setDot_id(Integer dot_id) {
        this.dot_id = dot_id;
    }

    public String getTrain_type() {
        return train_type;
    }

    public void setTrain_type(String train_type) {
        this.train_type = train_type;
    }

    public String getDriver_id() {
        return driver_id;
    }

    public void setDriver_id(String driver_id) {
        this.driver_id = driver_id;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public String getSendDeptId() {
        return sendDeptId;
    }

    public void setSendDeptId(String sendDeptId) {
        this.sendDeptId = sendDeptId;
    }

    @Override
    public String toString() {
        return "TTrain{" +
        "id=" + id +
        ", carNo=" + carNo +
        ", driverName=" + driverName +
        ", sendDeptName=" + sendDeptName +
        ", createTime=" + createTime +
        ", phone=" + phone +
        ", reportDate=" + reportDate +
        ", status=" + status +
        ", userId=" + userId +
        ", trainNo=" + trainNo +
        "}";
    }
}
